package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 模板管理
 *
 * @author wang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@ApiModel("模板实体")
public class ModelEntity extends BaseEntity {

    /**
     * 物理主键
     */
    @ApiModelProperty(value = "物理主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 模板编码
     */
    @ApiModelProperty(value = "模板编码")
    private String code;

    /**
     * 模板标题
     */
    @ApiModelProperty(value = "模板标题")
    private String title;
}
